package com.tanhua.model.mongo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

//查询语音与获取者关系
@NoArgsConstructor
@AllArgsConstructor
@Data
@Document(collection = "peachblossom_user")
public class PeachBlossomUser implements Serializable {

    private ObjectId id; //主键id
    private Long userId; //获取语音的用户id
    private Long created; //创建时间
    private String date; //当天时间
    private Integer remainingTimes=10; //当日可获取语音数量,默认值为10 每获取一次该值-1
}
